
// import 'package:json/json.dart';

// @JsonCodable()
// class UserAccount {
//   String loginName;
//   String password;
//   String userToken;
//   UserAccount(this.loginName, this.password, this.userToken);
// }

class UserAccount {
  String? loginName;
  String? password;
  String? userToken;
  UserAccount({this.loginName, this.password, this.userToken});

  factory UserAccount.fromJson(Map<String, dynamic> json) {
    return UserAccount(
      loginName: json['loginName'],
      password: json['password'],
      userToken: json['userToken'],
    );
  }
  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['loginName'] = loginName;
    data['password'] = password;
    data['userToken'] = userToken;
    return data;
  }
}

